home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11368 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  962 b 

  1. Path: newshost.cyberramp.net!news
  2. From: sinan@cyberramp.net (John Noland)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Passing Pointer to DLL, HELP!
  5. Date: 23 Mar 1996 13:57:24 GMT
  6. Organization: Prose Software
  7. Message-ID: <4j1004$klp@newshost.cyberramp.net>
  8. References: <4iqoa3$mli@lastactionhero.rs.itd.umich.edu>
  9. NNTP-Posting-Host: ramp3-13.cyberramp.net
  10. X-Newsreader: WinVN 0.99.5
  11.  
  12. In article <4iqoa3$mli@lastactionhero.rs.itd.umich.edu>, anderson@cedar.cic.net says...
  13. >
  14. >My question is actually how to correctly passing a pointer to a DLL in VC++,
  15. >        void func(float* num,....)
  16. >just wouldn't work for me. E-mail response prefered. Thanks.
  17.  
  18. Is this function taking variable number of parameters or are you not showing
  19. the other parameters for brevity? If it is taking a variable number of 
  20. arguments, then the problem is probably with the macros involved. They
  21. count on SS == DS, which isn't true in a DLL. Also, the function needs
  22. to be declared far.
  23.  
  24. -John
  25.  
  26.